<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateActivityTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('mckj_activity', function (Blueprint $table) {
            $table->bigIncrements('id');
            $table->string('name')->comment('名称');
            $table->string('desc')->comment('描述');
            $table->integer('sort')->default(1)->comment('排序');
            $table->string('url')->comment('链接地址');
            $table->smallInteger('status')->default(1)->comment('状态，0关闭，1开启');
            $table->timestamp('created_time')->nullable()->comment('创建时间');
            $table->timestamp('updated_time')->nullable()->comment('更新时间');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('mckj_activity');
    }
}
